<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>图片相册</title>
		<link rel="stylesheet" type="text/css" href="layui/css/layui.css"/>
		<script src="js/jquery.js" type="text/javascript" charset="utf-8"></script>
		<script src="layer-v3.2.0/layer/layer.js"></script>
	</head>
	<body>
<!-- //调用相册 -->
<div id="layer-photos-demo" class="layer-photos-demo">
  <img layer-pid="image1" layer-src="img/1.jpg" src="img/1.jpg" alt="飞云之下" title="飞云之下" height="250">
  <img layer-pid="image2" layer-src="img/2.jpg" src="img/2.jpg" alt="林俊杰" title="林俊杰" height="250">
  <img layer-pid="image3" layer-src="img/3.jpg" src="img/3.jpg" alt="aa" title="aa" height="250">
</div>
		
		<script>
		//调用示例
		layer.photos({
		  photos: '#layer-photos-demo'
		  ,anim: 2 //0-6的选择，指定弹出图片动画类型，默认随机（请注意，3.0之前的版本用shift参数）
		}); 
		</script>
	</body>
</html>
